package com.netease.examination.dao.buyer;

import com.netease.examination.dto.BuyerGoods;
import com.netease.examination.model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * designed by destiny
 *
 * @author destiny
 *         e-mail destinywk@163.com
 *         github https://github.com/DestinyWang
 *         oschina https://git.oschina.net/destinywk
 * @version JDK 1.8.0_101
 * @since 2017/3/30 22:00
 */
@Mapper
public interface BuyerDAO {

    //查看商品列表（包含购买与未购买）
    //查看未购买的商品
    //查看商品详情
    //添加购物车
    //购物车结算至订单表
    //更新购买标志位
    //清空购物车
    //查询历史订单

    List<Goods> findGoodsList();

    List<Goods> findUnbuyGoodsList();

    Goods findGoodsDetail(Long goodId);

    void putIntoShoppingCar(BuyerGoods goods);

    List<BuyerGoods> findShoppingCar();

    void settleAccounts();

    void setGoodsTag();

    void emptyShoppingCar();

    List<BuyerGoods> findHistoryOrder();

}
